var app=getApp(),api=require('../../../../api.js');
Page({
  data: {
    couponArr: [
     

    ]
  },
  onShow:function(){
    app.pageOnLoad(this);
    var that=this;
    that.setData({
      site: wx.getStorageSync('site')
    })
    app.request({
      url: api.Coupon.RedUser,
      data:{
        uid:wx.getStorageSync('uid')
      },
      success:function(e){

        if(e.code==1){
          that.setData({
            couponArr: e.data
          })
        }
        
      }
    })
  }
})